package com.itheima.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/*
* 主要功能是进行锁定三个问卷
*
* */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "questionnaireLock")
public class QuestionnaireLock implements Serializable {

    private ObjectId id; //行数据id
    private Long userId; //登录用户id
    private Long questionnaireId;//不同等级问卷的主键id
    private Integer isLock = 1; //锁定状态(0解锁，1锁住),默认为1



}
